:root {
            --primary-color: #1890ff;
            --secondary-color: #096dd9;
            --text-dark: #333;
            --text-light: #595959;
            --border-color: #f0f0f0;
            --mobile-breakpoint: 768px;
        }

        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f0f2f5;
            color: #333;
            overflow-x: hidden;
        }

        /* 顶部导航栏 */
        .header {
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            height: 64px;
            padding: 0 16px;
            color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 18px;
            font-weight: 600;
            margin-right: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }

        .nav-links {
            display: flex;
            flex-grow: 1;
            overflow-x: auto;
        }

        .nav-links a {
            color: rgba(88, 88, 88, 0.85);
            text-decoration: none;
            font-size: 14px;
            margin-right: 15px;
            padding: 8px 5px;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
            white-space: nowrap;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: white;
            border-bottom: 2px solid white;
        }

        .search-container {
            margin-right: 15px;
            min-width: 120px;
        }

        .search-container input {
            width: 100%;
            padding: 6px 12px;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.15);
            color: white;
            font-size: 14px;
        }

        /* 汉堡菜单按钮样式 */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            margin-right: 15px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .mobile-menu-btn:hover {
            transform: scale(1.1);
        }

        /* 移动端菜单样式 */
        .nav-links.active {
            display: flex !important;
            flex-direction: column;
            position: fixed;
            top: 64px;
            left: 0;
            width: 80%;
            height: calc(100vh - 64px);
            background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
            padding: 20px;
            box-shadow: 2px 0 8px rgba(0,0,0,0.1);
            z-index: 1000;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from { transform: translateX(-100%); }
            to { transform: translateX(0); }
        }

        /* 主内容区 */
        .main-content {
            padding: 16px;
        }

        /* 媒体查询 - 平板及以上 */
        @media (min-width: 768px) {
            .logo {
                font-size: 20px;
                max-width: none;
            }

            .nav-links a {
                font-size: 16px;
                margin-right: 25px;
            }

            .main-content {
                padding: 24px;
            }
        }

        @media screen and (max-width: 768px) {
  .user-info {
    display: flex;
    align-items: center;
  }

  .user-info .name {
    display: inline-block !important;
    margin-left: 2px;
    font-size: 20px;
    color: #ffffff;
  }
}


        /* 移动端样式 */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-links {
                position: fixed;
                top: 64px;
                left: -100%;
                width: 80%;
                height: calc(100vh - 64px);
                background: white;
                flex-direction: column;
                padding: 20px;
                transition: left 0.3s;
                box-shadow: 2px 0 8px rgba(0,0,0,0.1);
            }

            .nav-links a {
                color: var(--text-dark);
                padding: 15px 0;
                margin: 8px 0;
                border-bottom: 1px solid var(--border-color);
                width: 100%;
                font-size: 16px;
                display: block;
            }

            .search-container {
                display: none;
            }
        }

	    /* 基础响应式设置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-color: #1890ff;
            --secondary-color: #096dd9;
            --text-dark: #333;
            --text-light: #595959;
            --border-color: #f0f0f0;
        }

        /* 响应式布局核心 */
        .app-container {
            background-color: #f0f2f5;
            min-height: 100vh;
            padding-bottom: 24px;
        }

        /* 移动端优先设计 [2](@ref) */
        /* 手机导航菜单 */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            margin-right: 15px;
        }

        /* 顶部导航栏响应式 */
        .header {
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            height: 64px;
            padding: 0 16px;
            color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 18px;
            font-weight: 600;
            margin-right: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }

        .nav-links {
            display: flex;
            flex-grow: 1;
            overflow-x: auto; /* 允许水平滚动 */
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 14px;
            margin-right: 15px;
            padding: 8px 5px;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
            white-space: nowrap;
        }

        .search-container {
            margin-right: 15px;
            min-width: 120px;
        }

        .search-container input {
            width: 100%;
            padding: 6px 12px;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.15);
            color: white;
            font-size: 14px;
        }

        /* 主内容区响应式 */
        .main-content {
            padding: 16px;
        }

        .features-container {
            display: flex;
            flex-direction: column; /* 移动端优先：垂直布局 [2](@ref) */
            gap: 16px;
        }

        .integral-section,
        .ranking-section {
            width: 100%;
        }

        /* 媒体查询 - 平板及以上 [6,8](@ref) */
        @media (min-width: 768px) {
            .logo {
                font-size: 20px;
                max-width: none;
            }

            .nav-links a {
                font-size: 16px;
                margin-right: 25px;
            }

            .main-content {
                padding: 24px;
            }

            .features-container {
                flex-direction: row; /* 桌面端恢复水平布局 */
            }

            .integral-section {
                flex: 2;
            }

            .ranking-section {
                flex: 1;
                min-width: 300px;
            }
        }

        /* 媒体查询 - 桌面大屏 */
        @media (min-width: 1200px) {
            .main-content {
                max-width: 1400px;
                margin: 0 auto;
            }
        }

        /* 手机端隐藏部分元素 */
        @media (max-width: 480px) {
            .search-container {
                display: none;
            }

            .user-info span {
                display: none;
            }
        }

        /* 移动端菜单 */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-links {
                position: fixed;
                top: 64px;
                left: -100%;
                width: 80%;
                height: calc(100vh - 64px);
                background: white;
                flex-direction: column;
                padding: 20px;
                transition: left 0.3s;
                box-shadow: 2px 0 8px rgba(0,0,0,0.1);
            }

            .nav-links.active {
                left: 0;
            }

            .nav-links a {
                color: var(--text-dark);
                padding: 12px 0;
                margin: 5px 0;
                border-bottom: 1px solid var(--border-color);
                width: 100%;
            }
        }

        /* 卡片通用样式 */
        .section-card {
            margin-bottom: 16px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .section-content {
            padding: 16px;
        }

        /* 移动端调整字体大小 */
        @media (max-width: 480px) {
            .banner-title {
                font-size: 22px;
            }

            .card-title {
                font-size: 16px;
            }

            .stat-value {
                font-size: 20px;
            }
        }

        /* 响应式表格 */
        .integral-list {
            list-style: none;
            padding: 0;
        }

        .integral-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }

        /* 响应式网格布局 [3](@ref) */
        .quiz-list, .shop-list .rule-list{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 16px;
        }

        @media (max-width: 600px) {
            .quiz-list, .shop-list .rule-list{
                grid-template-columns: 1fr;
            }
        }

        /* 积分答题卡片 */
        .quiz-card {
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            padding: 24px;
            transition: all 0.3s;
            background: white;
        }
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f0f2f5;
            color: #333;
            overflow-x: hidden;
        }

        /* 顶部导航栏样式 */
        .header {
            background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
            height: 64px;
            padding: 0 24px;
            display: flex;
            align-items: center;
            color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 20px;
            font-weight: 600;
            margin-right: 40px;
        }

        .nav-links {
            display: flex;
            flex-grow: 1;
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 16px;
            margin-right: 32px;
            padding: 8px;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: white;
            border-bottom: 2px solid white;
        }

        .search-container {
            margin-right: 24px;
            width: 260px;
        }

        .search-container input {
            width: 100%;
            padding: 8px 12px;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.15);
            color: white;
        }

        .search-container input::placeholder {
            color: rgba(255,255,255,0.7);
        }

        .user-info {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .user-info .avatar {
            background-color: #fff;
            color: #1890ff;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 8px;
        }
        .user-info .avatar-text {
            font-size: 16px;
            }

            .user-info .avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            }

        /* 主内容区域样式 */
        .main-content {
            padding: 24px;
            max-width: 1400px;
            margin: 0 auto;
            min-height: calc(100vh - 64px);
        }

        /* 页面容器样式 */
        .page-container {
            display: none;
            background: white;
            border-radius: 8px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .page-container.active {
            display: block;
        }

        /* 首页特定样式 */
        .banner-card {
            margin-bottom: 24px;
            border-radius: 8px;
            overflow: hidden;
        }

        .banner-content {
            display: flex;
            padding: 0 24px;
            background: linear-gradient(90deg, #1890ff 0%, #096dd9 100%);
            color: white;
            min-height: 200px;
            align-items: center;
            border-radius: 8px;
        }

        .banner-text {
            flex: 1;
            padding: 20px 0;
        }

        .banner-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 12px;
        }

        .banner-subtitle {
            font-size: 16px;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .pain-points {
            margin-bottom: 20px;
        }

        .pain-points .tag {
            display: inline-block;
            margin-right: 12px;
            margin-bottom: 8px;
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            padding: 4px 10px;
            font-size: 14px;
            border-radius: 20px;
        }

        .features-container {
            display: flex;
            gap: 24px;
        }

        .integral-section {
            flex: 2;
        }

        .ranking-section {
            flex: 1;
        }

        .card-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            position: relative;
        }

        .section-card {
            margin-bottom: 24px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            overflow: hidden;
            position: relative;
        }

        .section-content {
            padding: 20px;
        }

        .integral-list {
            list-style: none;
            padding: 0;
        }

        .integral-item {
            display: flex;
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }

        .integral-item:last-child {
            border-bottom: none;
        }

        .integral-item:hover {
            background-color: #f7fbff;
        }

        .integral-info {
            flex: 1;
        }

        .integral-name {
            font-weight: 500;
            margin-bottom: 8px;
        }

        .integral-meta {
            display: flex;
            color: #595959;
            font-size: 14px;
        }

        .integral-meta-item {
            display: flex;
            align-items: center;
            margin-right: 20px;
        }

        .integral-stats {
            display: flex;
            align-items: center;
        }

        .integral-stats-item {
            min-width: 60px;
            text-align: center;
            color: #595959;
        }

        .rank-list {
            padding: 0;
            list-style: none;
        }

        .rank-item {
            display: flex;
            padding: 12px 0;
            align-items: center;
            border-bottom: 1px solid #f0f0f0;
        }

        .rank-item:last-child {
            border-bottom: none;
        }

        .rank-number {
            font-weight: bold;
            width: 30px;
            text-align: center;
            font-size: 18px;
        }

        .rank-number.top1 {
            color: #FFD700; /* 金牌 */
        }

        .rank-number.top2 {
            color: #C0C0C0; /* 银牌 */
        }

        .rank-number.top3 {
            color: #CD7F32; /* 铜牌 */
        }

        .rank-name {
            flex: 1;
            font-weight: 500;
        }

        .rank-value {
            color: #1890ff;
            font-weight: bold;
        }

        .personal-stats {
            display: flex;
            padding: 12px 0;
            text-align: center;
            border-bottom: 1px solid #f0f0f0;
        }

        .personal-stats-item {
            flex: 1;
            padding: 10px;
        }

        .stat-title {
            font-size: 14px;
            color: #595959;
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #1890ff;
        }

        .point-type {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
            background-color: #e6f7ff;
            color: #1890ff;
            margin-right: 8px;
        }

        .point-gain {
            color: #52c41a;
            font-weight: bold;
        }

        .point-loss {
            color: #ff4d4f;
            font-weight: bold;
        }

        /* 积分答题页面样式 */
        .quiz-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin-top: 20px;
        }

        .quiz-card {
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            padding: 16px;
            transition: all 0.3s;
            background: white;
        }

        .quiz-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-5px);
            border-color: #1890ff;
        }

        .quiz-title {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 20px;
        }

        .quiz-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            color: #8c8c8c;
            font-size: 14px;
            margin-bottom: 20px;
        }

        .quiz-points {
            font-weight: bold;
            color: #1890ff;
            margin-bottom: 24px;
        }

        .quiz-remark {
            font-size: 14px;
            color: #8c8c8c;
            margin-bottom: 16px;
            font-style: italic;
        }

        .quiz-status {
            font-size: 14px;
            color: #52c41a;
            margin-bottom: 16px;
            font-weight: 500;
        }

        .btn-secondary {
            background-color: #d9d9d9;
            color: #666;
            cursor: not-allowed;
            position: relative;
        }

        .btn-secondary:hover {
            background-color: #d9d9d9;
        }

        .btn-ended {
            background-color: #ff4d4f;
            color: white;
            cursor: not-allowed;
            position: relative;
        }

        .btn-ended:hover {
            background-color: #ff4d4f;
        }

        /* 为不可用按钮添加提示 */
        .btn-secondary::after,
        .btn-ended::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 1000;
        }

        .btn-secondary:hover::after,
        .btn-ended:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* 问卷详情 */
        .quiz-detail-header {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .quiz-progress {
            flex: 1;
            height: 10px;
            background: #f0f0f0;
            border-radius: 6px;
            overflow: hidden;
        }
        .quiz-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #52c41a, #1890ff);
            width: 0%;
            transition: width 0.3s ease;
        }
        .quiz-progress-text {
            min-width: 60px;
            text-align: right;
            color: #595959;
            font-size: 14px;
        }
        .quiz-questions-container {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .question-item {
            padding: 16px;
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 8px;
        }
        .question-title {
            font-weight: 600;
            margin-bottom: 10px;
        }
        .required-mark { color: #ff4d4f; margin-left: 6px; }
        .question-fraction {
            color: #1890ff;
            font-size: 14px;
            font-weight: 500;
        }
        .question-analysis {
            margin-top: 12px;
            padding: 12px;
            background: #f6ffed;
            border: 1px solid #b7eb8f;
            border-radius: 6px;
            color: #52c41a;
            font-size: 14px;
            line-height: 1.5;
        }
        .options-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .option-item { display: flex; align-items: center; gap: 8px; }

        /* 问卷详情 - 自适应 */
        @media (max-width: 768px) {
            .page-container { padding: 16px; }
            .quiz-detail-header { flex-direction: column; align-items: stretch; gap: 10px; }
            .quiz-progress-text { text-align: left; }
            .quiz-detail-actions { flex-direction: column; }
            .quiz-detail-actions .btn { width: 100%; }
            .quiz-meta { flex-direction: column; gap: 6px; }
            .quiz-card { padding: 12px; }
            .quiz-title { font-size: 16px; }
        }
        @media (max-width: 480px) {
            .quiz-title { font-size: 15px; }
            .question-title { font-size: 15px; }
        }

        /* 积分商城页面样式 */
        .shop-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 24px;
            margin-top: 20px;
        }



        .shop-item {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.09);
            transition: all 0.3s;
            background: white;
        }

        .shop-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.12);
        }

        .shop-image {
            height: 180px;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: #8c8c8c;
        }

        .shop-info {
            padding: 16px;
        }

        .shop-title {
            font-weight: 500;
            margin-bottom: 8px;
        }

        .shop-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .shop-points {
            font-weight: bold;
            color: #ff4d4f;
        }

        /* 积分投票页面样式 */
        .vote-list {
            list-style: none;
            padding: 0;
            margin-top: 20px;
        }

        .vote-item {
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
            background: white;
            border-radius: 8px;
            margin-bottom: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .vote-title {
            font-weight: 500;
            margin-bottom: 8px;
            font-size: 18px;
        }

        .vote-meta {
            display: flex;
            justify-content: space-between;
            color: #8c8c8c;
            font-size: 14px;
            margin-bottom: 12px;
        }

        .vote-action {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .vote-rating {
            display: flex;
        }

        .vote-count {
            font-weight: bold;
            color: #1890ff;
        }

        /* 个人中心页面样式 */
        .profile-stats {
            display: flex;
            margin-bottom: 24px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .profile-stat-item {
            flex: 1;
            text-align: center;
            padding: 16px;
            border-right: 1px solid #f0f0f0;
        }

        .profile-stat-item:last-child {
            border-right: none;
        }

        .profile-stat-value {
            font-size: 28px;
            font-weight: bold;
            color: #1890ff;
        }

        .profile-stat-title {
            color: #8c8c8c;
            margin-top: 8px;
        }

        .tabs-container {
            margin-top: 24px;
        }

        .tab-content {
            margin-top: 16px;
        }

        .tab-buttons {
            display: flex;
            border-bottom: 1px solid #e8e8e8;
            margin-bottom: 16px;
        }

        .tab-button {
            padding: 12px 24px;
            cursor: pointer;
            background: none;
            border: none;
            font-size: 16px;
            position: relative;
        }

        .tab-button.active {
            color: #1890ff;
            font-weight: 500;
        }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: #1890ff;
        }

        /* 按钮样式 */
        .btn {
            padding: 8px 16px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn i {
            margin-right: 8px;
        }

        .btn-primary {
            background-color: #1890ff;
            color: white;
        }

        .btn-primary:hover {
            background-color: #096dd9;
        }

        .btn-block {
            display: block;
            width: 100%;
            padding: 12px;
        }
        .info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.info-item {
  display: flex;
  justify-content: flex-start;
  font-size: 16px;
  color: #333;
}

.info-label {
  font-weight: 600;
  width: 80px;
  color: #555;
}

.info-value {
  color: #222;
}

/* 积分规则 */
 /* .rule-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin-top: 20px;
        } */

.point-rule-group {
  margin-bottom: 30px;
}

.rule-group-title {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #333;
}



.rule-table {
  width: 100%;
  table-layout: fixed; /* ★★ 保证固定宽度布局 */
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
}

.rule-table th, .rule-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  word-wrap: break-word;
  word-break: break-word;
  vertical-align: top;
}


.rule-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}


/* 遮罩层 */

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
}

.loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-weight: bold;
}



/* 投票页面样式 */
.period-select-box {
  margin: 10px 0;
  font-size: 14px;
}

.vote-options {
  margin-top: 15px;
}

.vote-item {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #fafafa;
}

.vote-item label {
  font-weight: bold;
  cursor: pointer;
}

.vote-result {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

#voteSubmit {
  margin-top: 15px;
  width: 100%;
}

/* 用户信息下拉菜单 */
.user-menu { position: relative; }
.user-menu-toggle { background: transparent; border: none; cursor: pointer; color: #fff; padding: 4px 6px; }
.user-menu-list { position: absolute; right: 0; top: 100%; min-width: 120px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); padding: 6px 0; z-index: 1000; }
.user-menu-item { width: 100%; text-align: left; background: transparent; border: none; padding: 8px 12px; cursor: pointer; font-size: 14px; color: #333; }
.user-menu-item:hover { background: #f5f5f5; }
